﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Komunikator.Core;

namespace Komunikator
{
    /// <summary>
    /// Interaction logic for LoginControl.xaml
    /// </summary>
    public partial class LoginControl : UserControl
    {
        private LoginModel logModel = new LoginModel();

        public LoginControl()
        {
            InitializeComponent();
        }

        private void LoginButton_Click(object sender, RoutedEventArgs e)
        {
            if (NumberTextbox.Text.Length != 0 && PasswordBox.Password.Length != 0)
            {
                logModel.number = NumberTextbox.Text;
                logModel.password = PasswordBox.Password;
            }
        }

        public LoginModel GetLoginModel()
        {
            
            return logModel;
        }

    }
}
